package com.totem.admin.controller;

import com.totem.admin.api.AdminOrderQueryServiceApi;
import com.totem.base.model.PageVO;
import com.totem.base.model.Result;
import com.totem.base.mybatis.controller.BaseController;
import com.totem.order.model.TOrders;
import com.totem.order.service.ITOrderQueryService;
import com.totem.order.vo.*;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
public class AdminOrderQueryController extends BaseController<ITOrderQueryService, TOrders> implements AdminOrderQueryServiceApi {
    @Override
    public Result<PageVO<GoodsOrderVO>> goodsOrderPage(GoodsOrderPageVO goodsOrderPageVO) {
        return Result.success(service.goodsOrderPage(goodsOrderPageVO));
    }

    @Override
    public Result<PageVO<RechargeOrderVO>> rechargeOrderPage(RechargeOrderPageVO rechargeOrderPageVO) {
        return Result.success(service.rechargeOrderPage(rechargeOrderPageVO));
    }

    @Override
    public Result<PageVO<FundOrderVO>> fundOrderPage(FundOrderPageVO fundOrderPageVO) {
        return Result.success(service.fundOrderPage(fundOrderPageVO));
    }

    @Override
    public Result<PageVO<SubscribeOrderVO>> subscribeOrderPage(SubscribeOrderPageVO subscribeOrderPageVO) {
        return Result.success(service.subscribeOrderPage(subscribeOrderPageVO));
    }

    @Override
    public Result<PageVO<WithdrawOrderVO>> withdrawOrderPage(WithdrawOrderPageVO withdrawOrderPageVO) {
        return Result.success(service.withdrawOrderPage(withdrawOrderPageVO));
    }
}
